package com.project.common.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Transient;
import lombok.Data;

import java.util.List;

/**
 * @author: 陈刚
 **/
@Data
public class MenuDTO extends BaseIdDTO {
    @Schema(description = "父级id")
    private Long pid;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "组件地址")
    private String component;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "平台类型（1-管理端，2-运营端，3-前端）")
    private Integer type;

    @Schema(description = "状态（1正常，2禁用）")
    private Integer status;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "是否为外链（1是 0否）")
    private Integer isFrame;

    @Schema(description = "显示状态（1显示 0隐藏）")
    private Integer visible;

    @Schema(description = "菜单类型（M目录 C菜单 F按钮 O其他）")
    private String menuType;

    @Schema(description = "上级的path")
    private String activeMenu;

    @Schema(description = "重定向")
    private String redirect;

    @Schema(description = "展示控制（1-开发展示，2-平台展示，3-企业展示，4-公共展示）")
    private Integer showType;

    @Schema(description = "权限id")
    private List<Long> permIds;


    @Transient
    private List<MenuDTO> children;

}
 